﻿using System;
using System.Windows.Forms;

namespace ThirdLife.UI.WinForms.Controls
{
  public partial class TLAboutBox : Form, IWindowView
  {
    private IAboutBoxController _controller;

    public TLAboutBox()
    {
      InitializeComponent();
    }

    public IAboutBoxController Controller
    {
      get { return _controller; }
      set { _controller = value; }
    }

    #region IWindowView Members

    public void SetupView()
    {
    }

    public void DestroyView()
    {
    }

    public void ShowWindow()
    {
      Show();
    }

    public void HideWindow()
    {
      Hide();
    }

    #endregion

    private void buttonClose_Click(object sender, EventArgs e)
    {
      this.HideWindow();
    }

    private void buttonContributors_Click(object sender, EventArgs e)
    {
      this.HideWindow();
      Controller.ShowContributors();
    }

    private void buttonLicense_Click(object sender, EventArgs e)
    {
      this.HideWindow();
      Controller.ShowLicense();
    }

  }
}